
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '合作伙伴信息',
    enableValidate: true
})

@Injectable()
export class HzhbxxsV4dmViewmodelForm extends Form {
    @NgFormControl({
        id: 'merchantName_ae1f5b58_c28h',
        name: "{{merchantName_ae1f5b58_c28h}}",
        binding: 'merchantName',
        updateOn: 'blur',
        defaultI18nValue: '商户名称',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantName: FormControl;

    @NgFormControl({
        id: 'merchantCode_13993795_hl5j',
        name: "{{merchantCode_13993795_hl5j}}",
        binding: 'merchantCode',
        updateOn: 'blur',
        defaultI18nValue: '商户编号',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantCode: FormControl;

    @NgFormControl({
        id: 'companyType_21694f08_o1ff',
        name: "{{companyType_21694f08_o1ff}}",
        binding: 'companyType',
        updateOn: 'blur',
        defaultI18nValue: '企业类型',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    companyType: FormControl;

    @NgFormControl({
        id: 'merchantType_3be4e233_ldn9',
        name: "{{merchantType_3be4e233_ldn9}}",
        binding: 'merchantType',
        updateOn: 'blur',
        defaultI18nValue: '商户类型',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    merchantType: FormControl;

    @NgFormControl({
        id: 'realName_6826be36_1rxr',
        name: "{{realName_6826be36_1rxr}}",
        binding: 'realName',
        updateOn: 'blur',
        defaultI18nValue: '真实姓名',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    realName: FormControl;

    @NgFormControl({
        id: 'fullName_64a2ea29_eyqm',
        name: "{{fullName_64a2ea29_eyqm}}",
        binding: 'fullName',
        updateOn: 'blur',
        defaultI18nValue: '企业全称',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    fullName: FormControl;

    @NgFormControl({
        id: 'businessLicense_2b4ffe5d_pqq5',
        name: "{{businessLicense_2b4ffe5d_pqq5}}",
        binding: 'businessLicense',
        updateOn: 'blur',
        defaultI18nValue: '营业执照编码',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    businessLicense: FormControl;

    @NgFormControl({
        id: 'address_45db5c58_7l1q',
        name: "{{address_45db5c58_7l1q}}",
        binding: 'address',
        updateOn: 'blur',
        defaultI18nValue: '商户地址',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    address: FormControl;

    @NgFormControl({
        id: 'email_df58773a_cecp',
        name: "{{email_df58773a_cecp}}",
        binding: 'email',
        updateOn: 'blur',
        defaultI18nValue: '邮箱',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    email: FormControl;

    @NgFormControl({
        id: 'telephone_b5ad4b6a_4hcw',
        name: "{{telephone_b5ad4b6a_4hcw}}",
        binding: 'telephone',
        updateOn: 'blur',
        defaultI18nValue: '联系电话',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    telephone: FormControl;

    @NgFormControl({
        id: 'adminstrator_8c0cccc8_3jam',
        name: "{{adminstrator_8c0cccc8_3jam}}",
        binding: 'adminstrator',
        updateOn: 'blur',
        defaultI18nValue: '管理员',
        validRules: [
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    adminstrator: FormControl;

    @NgFormControl({
        id: 'remark_24aa9ae4_d3rs',
        name: "{{remark_24aa9ae4_d3rs}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

}